Repository navigation
fix(mcpx): repair mcpx workflow failures from run 43707720627 (#10487) - #10490
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 55 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Fixes #10487
Repairs the deterministic failures from mcpx workflow run 43707720627 (schedule, head 7d3dceb):
.github/workflows/mcpx.yml: the v2 test-file existence loop tested the literal directoryplugin/opencode/v2/instead ofplugin/opencode/v2/$f, so it always reported a registered file missing; the same unused loop variable was the lint job's shellcheck SC2034 at mcpx.yml:455. The loop now checks and names$f.docs/changes/research-and-findings-nix-slice.mdhad no compendium manifest entry (TestEveryDocumentHasAChapter): added as anot-compendiumdocs-history fragment for mcpx docs: research and incidental findings -- AI, harnesses, protocols, TypeScript, and a Nix section #1871, matching its sibling fragments.docs/environment.mdwas stale (TestTheEnvironmentDocIsCurrent): regenerated with the test's-updatemode.MCPX_SCRIPT_LANGUAGE(script.language) was in neither envguard table (TestEveryRegistryVariableIsHarnessSetOrSafe): classifiedsafeMCPX— the harness does not set it, the default governs.TestPrincipalForUnixConnReadsPeerUIDandTestSSHConnectFallsBackPastSlowHandshakebound unix sockets undert.TempDir(), whose macOS path exceeds the 104-byte sun_path limit (bind: invalid argument). Both now use the existingtestsupport.SocketDir(the codex-proxy: PR #431's {env:CODEX_PROXY_PORT} baseURL has no fallback — opencode outside a home-manager shell gets an empty port #434 helper built for exactly this).TestRelocatedmade the same short-path assumption for its "short" state dir; it now usestestsupport.SocketDirtoo.TestDispatchedWorkdirPolicyAllocatesARunnerDirectorycompared the child's physical cwd (/private/var/...) against the unresolvedt.TempDir()WorkRoot (/var/...): the test now resolves the root's symlinks before the prefix check.Isolated, not fixed here: the e2e package's 600s stress timeout on both platforms.
TestAShutdownDoesNotCutACallInFlightpasses standalone in 99s (itsa_short_callsubtest alone takes 91s), so this is cumulative wall time under-race -shuffle -repeat, not a deterministic failure. Tracked in #10489.Verification (Linux, this branch):
go test ./internal/settings ./internal/runner -count=1— pass (full packages)TestTheEnvironmentDocIsCurrent,TestEveryDocumentHasAChapter,TestEveryRegistryVariableIsHarnessSetOrSafe,TestDispatchedWorkdirPolicyAllocatesARunnerDirectory,TestPrincipalForUnixConnReadsPeerUID,TestRelocated,TestSSHConnectFallsBackPastSlowHandshake— all passbun test plugin/opencode/v2/— 73 pass, 0 fail; the fixed existence loop passes for all six registered filesgo veton the touched packages — cleanQueue: task 17361, lane code-c.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.